package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


/**
 * 销售记录
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2022-04-25 15:04:06
 */
@TableName("xiaoshoujilu")
public class XiaoshoujiluEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public XiaoshoujiluEntity() {
		
	}
	
	public XiaoshoujiluEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 销售单号
	 */
					
	private String xiaoshoudanhao;
	
	/**
	 * 商品名称
	 */
					
	private String shangpinmingcheng;
	
	/**
	 * 商品图片
	 */
					
	private String shangpintupian;
	
	/**
	 * 商品价格
	 */
					
	private Integer shangpinjiage;
	
	/**
	 * 商品数量
	 */
					
	private Integer shangpinshuliang;
	
	/**
	 * 销售金额
	 */
					
	private Integer xiaoshoujine;
	
	/**
	 * 销售日期
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date xiaoshouriqi;
	
	/**
	 * 出库备注
	 */
					
	private String chukubeizhu;
	
	/**
	 * 操作机器
	 */
					
	private String caozuojiqi;
	
	/**
	 * 销售分析
	 */
					
	private String xiaoshoufenxi;
	
	/**
	 * 员工工号
	 */
					
	private String yuangonggonghao;
	
	/**
	 * 员工姓名
	 */
					
	private String yuangongxingming;
	
	/**
	 * 超市名称
	 */
					
	private String chaoshimingcheng;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：销售单号
	 */
	public void setXiaoshoudanhao(String xiaoshoudanhao) {
		this.xiaoshoudanhao = xiaoshoudanhao;
	}
	/**
	 * 获取：销售单号
	 */
	public String getXiaoshoudanhao() {
		return xiaoshoudanhao;
	}
	/**
	 * 设置：商品名称
	 */
	public void setShangpinmingcheng(String shangpinmingcheng) {
		this.shangpinmingcheng = shangpinmingcheng;
	}
	/**
	 * 获取：商品名称
	 */
	public String getShangpinmingcheng() {
		return shangpinmingcheng;
	}
	/**
	 * 设置：商品图片
	 */
	public void setShangpintupian(String shangpintupian) {
		this.shangpintupian = shangpintupian;
	}
	/**
	 * 获取：商品图片
	 */
	public String getShangpintupian() {
		return shangpintupian;
	}
	/**
	 * 设置：商品价格
	 */
	public void setShangpinjiage(Integer shangpinjiage) {
		this.shangpinjiage = shangpinjiage;
	}
	/**
	 * 获取：商品价格
	 */
	public Integer getShangpinjiage() {
		return shangpinjiage;
	}
	/**
	 * 设置：商品数量
	 */
	public void setShangpinshuliang(Integer shangpinshuliang) {
		this.shangpinshuliang = shangpinshuliang;
	}
	/**
	 * 获取：商品数量
	 */
	public Integer getShangpinshuliang() {
		return shangpinshuliang;
	}
	/**
	 * 设置：销售金额
	 */
	public void setXiaoshoujine(Integer xiaoshoujine) {
		this.xiaoshoujine = xiaoshoujine;
	}
	/**
	 * 获取：销售金额
	 */
	public Integer getXiaoshoujine() {
		return xiaoshoujine;
	}
	/**
	 * 设置：销售日期
	 */
	public void setXiaoshouriqi(Date xiaoshouriqi) {
		this.xiaoshouriqi = xiaoshouriqi;
	}
	/**
	 * 获取：销售日期
	 */
	public Date getXiaoshouriqi() {
		return xiaoshouriqi;
	}
	/**
	 * 设置：出库备注
	 */
	public void setChukubeizhu(String chukubeizhu) {
		this.chukubeizhu = chukubeizhu;
	}
	/**
	 * 获取：出库备注
	 */
	public String getChukubeizhu() {
		return chukubeizhu;
	}
	/**
	 * 设置：操作机器
	 */
	public void setCaozuojiqi(String caozuojiqi) {
		this.caozuojiqi = caozuojiqi;
	}
	/**
	 * 获取：操作机器
	 */
	public String getCaozuojiqi() {
		return caozuojiqi;
	}
	/**
	 * 设置：销售分析
	 */
	public void setXiaoshoufenxi(String xiaoshoufenxi) {
		this.xiaoshoufenxi = xiaoshoufenxi;
	}
	/**
	 * 获取：销售分析
	 */
	public String getXiaoshoufenxi() {
		return xiaoshoufenxi;
	}
	/**
	 * 设置：员工工号
	 */
	public void setYuangonggonghao(String yuangonggonghao) {
		this.yuangonggonghao = yuangonggonghao;
	}
	/**
	 * 获取：员工工号
	 */
	public String getYuangonggonghao() {
		return yuangonggonghao;
	}
	/**
	 * 设置：员工姓名
	 */
	public void setYuangongxingming(String yuangongxingming) {
		this.yuangongxingming = yuangongxingming;
	}
	/**
	 * 获取：员工姓名
	 */
	public String getYuangongxingming() {
		return yuangongxingming;
	}
	/**
	 * 设置：超市名称
	 */
	public void setChaoshimingcheng(String chaoshimingcheng) {
		this.chaoshimingcheng = chaoshimingcheng;
	}
	/**
	 * 获取：超市名称
	 */
	public String getChaoshimingcheng() {
		return chaoshimingcheng;
	}

}
